slicethread: Limit the automatic number of threads to 16
authorMartin Storsjö <martin@martin.st>
Mon, 5 Sep 2022 12:17:56 +0000 (15:17 +0300)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 16 Sep 2022 21:50:22 +0000 (22:50 +0100)
commita6cbc60ddea55fef0f4844b3cee587b1730e9d85
tree94a15c6a1ce13fe087fb2be684ad3a0432b0627c
parentc61b95ca0b8fbc383d1b21c7b483d851e267c99a
slicethread: Limit the automatic number of threads to 16

This matches a similar cap on the number of automatic threads
in libavcodec/pthread_slice.c.

On systems with lots of cores, this fixes a couple fate failures
in 32 bit mode on such machines (where spawning a huge number of
threads runs out of address space).

Signed-off-by: Martin Storsjö <martin@martin.st>
Gbp-Pq: Name 0002-slicethread-Limit-the-automatic-number-of-threads-to.patch
libavutil/slicethread.c